﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="impression_add.aspx.cs" Inherits="admin_UKNOW_impression_impression_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>关键字添加页</title>
    <link href="../../css/default.css" rel="stylesheet" type="text/css" />

    <script src="../../js/jUtility.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../common/calendar.js"></script>

    <script type="text/javascript" src="../../../fckeditor/fckeditor.js"></script>

    <script type="text/javascript" src="../../js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript">
        window.onload = function () {
            if (document.getElementById("content")) {
                var fck = new FCKeditor('content');
                fck.BasePath = "../../../fckeditor/";
                fck.Width = "99%";
                fck.Height = "600px"
                fck.ReplaceTextarea();
            }

            //initTextarea("concact");
        }
        function initTextarea(id) {
            if (document.getElementById(id) && document.getElementById(id).style.display != 'none') {
                var fck2 = new FCKeditor(id);
                fck2.BasePath = "../../../fckeditor/";

                fck2.Width = "99%";
                fck2.Height = "200px"
                fck2.ReplaceTextarea();
            }
        }
    </script>
    <script type="text/javascript">
        function checkNull() 
        {
            var keyName = $("#title").val();
            if (keyName.length == 0) {
                alert("关键字名称不能为空!");
                return false;
            }
            else {
                return true;
            }
        }
    </script>
</head>
<body>
    <table width="100%" height="500" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
            <td height="414" align="left" valign="top" class="rightbg">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="2" bgcolor="#A49B81">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" background="../../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;
                                        padding-top: 3px;">
                                        <asp:Label ID="headers" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#B0C9E8">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" style="padding-left: 10px;">
                            <form id="form1" method="post" runat="server">
                            <asp:HiddenField ID="state" runat="server" />
                            <asp:HiddenField ID="aid" runat="server" />
                            <asp:HiddenField ID="isstaticpub" runat="server" />
                            <asp:HiddenField ID="ordernum" runat="server" />
                            <table width="95%" height="728" border="1" align="center" cellpadding="0" cellspacing="0"
                                bordercolorlight="#2583BC" bordercolordark="#ffffff">
                                <tr>
                                    <td width="100%" height="641" valign="top">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <th align="left" width="80%">
                                                    <asp:Label ID="infoname" runat="server"></asp:Label>
                                                </th>
                                                <th align="left">
                                                    <asp:LinkButton runat=server ID="lbBack" Text="返回" onclick="lbBack_Click"></asp:LinkButton>
                                                </th>
                                            </tr>
                                        </table>
                                        <br>
                                        <table border="0" style="width: 100%; height: 118px">
                                            <tr>
                                                <td width="7%" align="right">
                                                    <font color="#FF0000">* </font>关键字：
                                                </td>
                                                <td width="75%"><nobr>
                                                    <asp:TextBox ID="title" runat="server" MaxLength="100" size="50" width="29%"/>
                                                </nobr>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="7%" align="right">
                                                    投票次数：
                                                </td>
                                                <td width="75%">
                                                    <asp:TextBox ID="voteTimes" runat="server" MaxLength="100" size="50" 
                                                        width="7%"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="7%" align="right">
                                                    <nobr>类型：</nobr>
                                                </td>
                                                <td width="75%">
                                                    <nobr>
                                                    <asp:TextBox ID="keyType" runat="server" Width="14%"></asp:TextBox>
                                                </nobr></td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    发布状态：
                                                </td>
                                                <td>
                                                    <asp:RadioButtonList runat="server" ID="pub" RepeatDirection="Horizontal"
                                                        RepeatLayout="Flow">
                                                        <asp:ListItem Text="否" Value="0" Selected="True" />
                                                        <asp:ListItem Text="是" Value="1" />
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                            </table>
                                        <table width="100%" border="0">
                                            <tr>
                                                <td height="54" colspan="3" align="center">
                                                    <asp:Button Text="保存" ID="sub3" OnClientClick="return checkNull()" runat="server"
                                                        OnClick="Sub_click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <iframe id="wait2" name="wait2" style="display: none" width="100%" height="100%"
        src="../../images/wait.gif" frameborder='0' align='middle' bgcolor='#FFFFFF'>
    </iframe>

    
        

</body>
</html>
